package servlet;

import http.HttpRequest;
import http.HttpResponse;

import java.io.IOException;

/**
 * @Author: admin
 * @Description:
 * @Date: 2019/3/19 11:12
 */

public class HelloServlet implements IServlet {
    @Override
    public void doGet(HttpRequest request, HttpResponse response) {
        try {
            response.write("get hello");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    @Override
    public void doPost(HttpRequest request, HttpResponse response) {
        try {
            response.write("post hello");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
